package org.linlinjava.litemall.db.domain.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class LitemallActivityGrouponVo {

    private Integer id;

    private Integer grouponId;

    private String userName;

    private Byte userType;

    private Integer userAge;

    private Integer orderId;

    private String orderCode;

    private String payId;

    private BigDecimal orderPrice;

    private Byte state;

    private Byte payState;

    private String contactName;

    private String contactPhone;

    private String image;

    private String grouponCode;

    private Integer subjectId;

    private String subject;

    private Integer total;

    private Integer gap;

    private Integer limited;

    /**
     * 团成员头像
     */
    private List<String> grouponSubImages;

    /**
     * 根据grouponCode查，判断是否已经加入该团
     */
    private Boolean isJoined;

    private List<SubGrouponVo> subVoList;

    /**
     * 展示该团组团人数情况
     */
    private String grouponSize;

    @Data
    @EqualsAndHashCode(callSuper = false)
    public static class SubGrouponVo {
        private Integer id;

        private Integer grouponId;

        private String userName;

        private Byte userType;

        private Integer userAge;

        private Byte state;

        private Byte payState;

        private String contactName;

        private String contactPhone;

        private String image;

    }

}
